﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Bus_proj.website
{
    public partial class ticket_change_new : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                string[] ticket_print = (string[])Session["ticket_print"];
                for (int i = 0; i < ticket_print.Length; i++)
                {
                    if (i == 0)
                    {
                        Session["0"] = ticket_print[i];
                    }
                    else if (i == 1)
                    {
                        Session["1"] = ticket_print[i];
                    }
                    else if (i == 2)
                    {
                        Session["2"] = ticket_print[i];
                    }
                    else if (i == 3)
                    {
                        Session["3"] = ticket_print[i];
                    }
                    else if (i == 4)
                    {
                        Session["4"] = ticket_print[i];
                    }
                    else if (i == 5)
                    {
                        Session["5"] = ticket_print[i];
                    }
                    else if (i == 6)
                    {
                        Session["6"] = ticket_print[i];
                    }
                    else if (i == 7)
                    {
                        Session["7"] = ticket_print[i];
                    }
                    else if (i == 8)
                    {
                        Session["8"] = ticket_print[i];
                    }
                    else if (i == 9)
                    {
                        Session["9"] = ticket_print[i];
                    }
                    else if (i == 10)
                    {
                        Session["10"] = ticket_print[i];
                    }
                    else if (i == 11)
                    {
                        Session["11"] = ticket_print[i];
                    }
                    else if (i == 12)
                    {
                        Session["12"] = ticket_print[i];
                    }
                    else if (i == 13)
                    {
                        Session["13"] = ticket_print[i];
                    }
                    else if (i == 14)
                    {
                        Session["14"] = ticket_print[i];
                    }
                    else if (i == 15)
                    {
                        Session["15"] = ticket_print[i];
                    }
                    else if (i == 16)
                    {
                        Session["16"] = ticket_print[i];
                    }
                    else if (i == 17)
                    {
                        Session["17"] = ticket_print[i];
                    }
                    else if (i == 18)
                    {
                        Session["18"] = ticket_print[i];
                    }
                    else if (i == 19)
                    {
                        Session["19"] = ticket_print[i];
                    }
                    else if (i == 20)
                    {
                        Session["20"] = ticket_print[i];
                    }
                }
            }
            catch (Exception)
            {
                Response.Redirect("login.aspx");
            }
            
        }
    }
}